<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="zh-cn" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <%= stylesheet_link_tag @styleName || "index", :media => "screen" %>
    <%= stylesheet_link_tag "jquery.jgrowl","jquery-ui" %>
    <!--[if IE 6]>
    <%= stylesheet_link_tag "if_ie6", :media => "screen" %>
    <![endif]-->
    <!--[if IE 7]>
    <%= stylesheet_link_tag "if_ie7", :media => "screen" %>
    <![endif]-->
    <%= javascript_include_tag :defaults,"jquery.jgrowl" %>
    <title><%= @pageTitle || "" %></title>
  </head>

  <body>
    <div class="header">
      <div class="head">
        <div class="head_box">
          <h1 class="logo"><a href="/" title="城市达人"><%=image_tag "logo.png", :alt => "城市达人"%></a></h1><sup>Beta</sup>
          <h2 class="city_name c_6" id="my_city"><strong id="navCityName">重庆</strong><%=image_tag "icon.gif", :alt => "更多城市", :title => "更多城市", :class => "icon_more_tag2" %></h2>
          <div class="user_infor" id="head_user">
            <!-- if user logon -->
            <% if logged_in? %>
              <strong class="user_name"><%= current_accounts.member.nick %></strong>
              <span class="bg_4 bor_4 news"><%=image_tag "icon.gif", :alt=>"我的信息", :title=>"我的信息", :class=>"icon_news" %>&nbsp;
                <a href="/user/infomation" class="c_6" id="h_notice">我的信息<span id="h_total_msg"></span><%=image_tag "icon.gif", :class=>"icon_more_tag2" %></a>
              </span>
              <div class="more_tags" id="user_infor_tags"><h3><span>最新消息</span></h3></div>
              <a href="/user/infomation" class="my_infor">我的资料</a>
              <a href="/user/privacy" class="my_intimate">隐私设置</a>
              <span class="flot">|</span><%= link_to "退出", logout_path , :class=>"esc"%>
              <!-- if user logout -->
            <% else %>
              <a href="javascript:void(0)" id="to_login_href" class="my_infor">请登录</a>
            <% end %>
          </div>
          <p class="map">
            <input type="hidden" id="nav-id" value="<%= controller.controller_name %>"/>
            <span id="nav_home"><%= link_to '首页', :controller => 'home' %></span>
            <span id="nav_user"><%= link_to '个人中心', "/home/profile" %></span>
            <span id="nav_act"><%= link_to '校园', :controller => 'groups'%></span>
            <span id="nav_group"><%= link_to '圈子', :controller => 'groups'%></span>
            <span id="nav_search"><a href="/html/search.htm#SRCHTAG=rec.daohang.a">搜索</a></span>
            <span id="nav_app"><a href="javascript:void(0)">应用<%=image_tag "icon.gif", :class=>"icon_new_sign", :id=>"icon_new_sign"%><%=image_tag "icon.gif", :class=>"icon_more_tag",:alt=>"更多应用", :title=>"更多应用"%></a></span>
          </p>
          <div class="more_tags" id="nav_app_list">
            <div class="content bor_4 bg_1">
              <ul>
                <li><a href="/html/psylist.htm"><img src="images/icon.gif" alt="图标名" title="图标名" class="icon_test" />测试</a></li>
                <li><a href="/html/pkmain.htm"><img src="images/icon.gif" alt="pk" title="pk" class="icon_pk" />PK台</a></li>
                <li><a href="/html/giftmain.htm"><img src="images/icon.gif" alt="礼物" title="礼物" class="icon_present" />礼物</a></li>
                <li id="app_nav_film" style="display:none"><a href="/app/film/"><img src="images/icon.gif" alt="看电影" title="看电影" class="icon_film" />看电影</a></li>
                <li><a href="/app/musicbox/"><img src="images/icon.gif" alt="音乐盒" title="音乐盒" class="icon_musicbox" />音乐盒</a></li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!--S 主体-->

    <% if flash[:notice] %>
    <script type="text/javascript">$.jGrowl("<h4 class='c_2'><%= flash[:notice] %></h4>");</script>
    <% end %>
    
    <div id="login-form" style="display: none">
      <form action="/session" method="post">
        <table cellspacing="0" cellpadding="0" class="tb_info">
          <tr>
            <td colspan="2">
              &nbsp;
            </td>
          </tr>
          <tr>
            <th>名　　称：</th>
            <td>
              <input type="text" class="text_size1" name="login"/>
              <span class="c_2">（仅中英文和数字）</span>
            </td>
          </tr>
          <tr>
            <td colspan="2">
              &nbsp;
            </td>
          </tr>
          <tr>
            <th>密　　码：</th>
            <td>
              <input type="password" class="text_size1" name="password"/>
              <span class="c_2">（仅中英文和数字）</span>
            </td>
          </tr>
          <tr>
            <td colspan="2">
              &nbsp;
            </td>
          </tr>
          <tr>
            <td colspan="2" align="left"><%= check_box_tag 'remember_me', '1', @remember_me %>记住我!</td>
          </tr>
          <tr>
            <td colspan="2">
              &nbsp;
            </td>
          </tr>
          <tr>
            <td colspan="2" align="right">
              <input type="submit" tabindex="5" value="login in" class="btn" id="login_button" />
            </td>
          </tr>
        </table>
      </form>
    </div>
    <%= yield :layout %>

    <!--E 主体-->
    <div class="footer">
      <p class="footermenu"><a target="new" href="http://www.tencent.com/">关于Ohimy</a> | <a target="new" href="http://www.tencent.com/index_e.shtml">About Ohimy</a> | <a target="new" href="http://www.qq.com/contract.shtml">服务条款</a> | <a target="new" href="http://adver.qq.com/">广告服务</a> | <a target="new" href="http://hr.tencent.com/">腾讯招聘</a> | <a target="new" href="http://service.qq.com/">客服中心</a> | <a target="new" href="http://www.qq.com/map/">网站导航</a></p>
      <p class="copyrighten">Copyright &copy; 1998 - <span id="copyendyear"><script type="text/javascript">document.write((new Date()).getFullYear())</script></span> Tencent. <a target="new" class="clink" href="http://www.tencent.com/zh-cn/le/copyrightstatement.shtml">All Rights Reserved</a></p>
      <p class="copyrightzh">腾讯公司 <a class="clink" target="new" href="http://www.tencent.com/zh-cn/le/copyrightstatement.shtml">版权所有</a> <a  target="new" href="http://www.tencent.com/law/mo_law.shtml?/law/copyright.htm">腾讯网络文化经营许可证</a></p>
    </div>
  </body>
</html>
